﻿namespace TechPoint.Demo
{
    /// <summary>
    /// 单例模式示例
    /// </summary>
    public sealed  class ConfigBlock
    {
        private static readonly ConfigBlock _instance = new ConfigBlock();// 实质上还在在静态构造函数里面创建实例

        private  ConfigBlock(){}

        public static ConfigBlock Instance
        {
            get
            {
                return _instance;
            }
        }
    }
}
